package com.flyco.modules.cms.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.flyco.modules.cms.entity.CmsImageTagProduct;
import com.flyco.modules.cms.mapper.CmsImageTagProductMapper;
import com.flyco.modules.cms.service.ICmsImageTagProductService;
import com.flyco.modules.cms.vo.CmsImageTagProductPage;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 活动图标管理产品明细
 * @Author: flyco
 * @Date:   2019-12-25
 * @Version: V1.0
 */
@Service
public class CmsImageTagProductServiceImpl extends ServiceImpl<CmsImageTagProductMapper, CmsImageTagProduct> implements ICmsImageTagProductService {
	
	@Autowired
	private CmsImageTagProductMapper cmsImageTagProductMapper;
	
	@Override
	public List<CmsImageTagProduct> selectByMainId(Long mainId) {
		return cmsImageTagProductMapper.selectByMainId(mainId);
	}
	@Override
	public Page<CmsImageTagProductPage> getImageTagProductPage(Page<CmsImageTagProductPage> page, Wrapper<CmsImageTagProductPage> wrapper) {
		return page.setRecords(cmsImageTagProductMapper.getImageTagProductPage(page, wrapper));
	}
}
